package com.atguigu.daijia.driver.service;

import com.atguigu.daijia.model.form.map.OrderServiceLocationForm;
import com.atguigu.daijia.model.form.map.UpdateDriverLocationForm;
import com.atguigu.daijia.model.form.map.UpdateOrderLocationForm;

import java.util.List;

/**
 * @author 谢忠涵7
 */
public interface LocationService {

    /**
     *开启接单服务：更新司机经纬度位置
     */
    Boolean updateDriverLocation(UpdateDriverLocationForm updateDriverLocationForm);

    /**
     * @description: 司机赶往代驾起始点：更新订单位置到Redis缓存
     * @author: xiaoxie
     * @date: 2024/10/29 14:46
     * @param: [updateOrderLocationForm]
     * @return: java.lang.Object
     **/
    Boolean updateOrderLocationToCache(UpdateOrderLocationForm updateOrderLocationForm);

    /**
     * @description: 开始代驾服务：保存代驾服务订单位置
     * @author: xiaoxie
     * @date: 2024/10/30 20:10
     * @param: [orderLocationServiceFormList]
     * @return: java.lang.Boolean
     **/
    Boolean saveOrderServiceLocation(List<OrderServiceLocationForm> orderLocationServiceFormList);
}